<?php
/**
 * @Name  : StaffSearchRequest.php
 * @Author: yashuai
 */

namespace App\Http\Requests\Org;

use App\Http\Requests\PackingRequest;
use App\Http\Rules\Mobile;

class StaffSearchRequest extends PackingRequest
{

    public function rules()
    {
        return [
            'Mobile'       => [new Mobile],
            'DepartmentID' => 'integer',
            'StaffName'    => 'max:20',
        ];
    }

    public function messages()
    {
        return [
            'DepartmentID.integer' => '部门ID参数类型异常',
            'StaffName.max'    => '员工姓名长度过长',
        ];
    }

}
